package com.xiu.travel.portal;

import com.alibaba.fastjson2.JSONObject;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * <p>
 * 搜索
 * </p>
 *
 * @author YuLing
 * @since 2023-10-13
 */
@RestController
@RequestMapping("portal/open")
@Tag(name = "通知回调接口")
@Slf4j
public class NotifyController {


    @Autowired
    private NoticeService service;


    @PostMapping("notice")
    @Operation(summary = "通知回调")
    public Object notice(@RequestBody JSONObject jsonObject) {
        return service.notice(jsonObject);
    }
}
